---
layout: single
property_name: outline-color
---

<section id="outline-color" class="property">
  <header class="property-header">
    <nav class="property-links">
      <a class="property-links-direct" href="{{site.url}}/property/outline-color/" data-property-name="outline-color" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="outline-color">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/outline-color" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#outline-color"><span>#</span>outline-color</a>
    </h2>
    <div class="property-description">
      <p>Defines the color of the element&#39;s outlines.</p>

    </div>

  </header>

    <style type="text/css">.outline-color { outline-style: solid;outline-width: 4px; }</style>




    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: transparent;">outline-color: transparent;</code>
        </p>
        <div class="example-description">
          <p>Applies a <strong>transparent</strong> color to the outlines. The outlines will still take up the <em>space</em> defined by the <code>outline-width</code> value.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-transparent">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-transparent{ outline-color:transparent;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: red;">outline-color: red;</code>
        </p>
        <div class="example-description">
          <p>You can use one of the <strong><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">140+ color names</a></strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-red">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-red{ outline-color:red;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: #05ffb0;">outline-color: #05ffb0;</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>hexadecimal</strong> color codes.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-05ffb0">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-05ffb0{ outline-color:#05ffb0;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: rgb(50, 115, 220);">outline-color: rgb(50, 115, 220);</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>rgb()</strong> color codes:</p>
<ul><li>the first value is for <code>red</code></li><li>the second value is for <code>green</code></li><li>the third value is for <code>blue</code></li></ul><p>Each of them can have a value between <strong>0</strong> and <strong>255</strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-rgb50-115-220">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-rgb50-115-220{ outline-color:rgb(50, 115, 220);}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: rgba(50, 115, 220, 0.3);">outline-color: rgba(50, 115, 220, 0.3);</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>rgba()</strong> color codes:</p>
<ul><li>the first 3 values are for <code>rgb</code></li><li>the 4th value is for the <code>alpha</code> channel and defines the opacity of the color</li></ul><p>The alpha value can go from zero <strong>0</strong> (transparent) to one <strong>1</strong> (opaque).</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-rgba50-115-220-03">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-rgba50-115-220-03{ outline-color:rgba(50, 115, 220, 0.3);}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: hsl(14, 100%, 53%);">outline-color: hsl(14, 100%, 53%);</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>hsl()</strong> color codes:</p>
<ul><li>the first value is for <code>hue</code> and can go from <strong>0</strong> to <strong>359</strong></li><li>the second value is for <code>saturation</code> and go from <strong>0%</strong> to <strong>100%</strong></li><li>the third value is for <code>luminosity</code> and go from <strong>0%</strong> to <strong>100%</strong></li></ul>
        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-hsl14-100-53">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-hsl14-100-53{ outline-color:hsl(14, 100%, 53%);}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-color: hsla(14, 100%, 53%, 0.6);">outline-color: hsla(14, 100%, 53%, 0.6);</code>
        </p>
        <div class="example-description">
          <p>You can use <strong>hsl()a</strong> color codes:</p>
<ul><li>the first 3 values are for <code>hsl</code></li><li>the 4th value is for the <code>alpha</code> channel and defines the opacity of the color</li></ul><p>The alpha value can go from zero <strong>0</strong> (transparent) to one <strong>1</strong> (opaque).</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div outline-color " id="outline-color-hsla14-100-53-06">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#outline-color-hsla14-100-53-06{ outline-color:hsla(14, 100%, 53%, 0.6);}</style>
    </section>

</section>
